<?php
$link =mysql_connect("localhost:3306","root","root");
mysql_select_db("test", $link);
$exec="insert into php_user(id,username,address,tel,content) values (null,'".$_POST["username"]."'
	,'".$_POST["address"]."'
	,'".$_POST["tel"]."'
	,'".$_POST["content"]."')"; 
mysql_query('SET NAMES utf-8');
mysql_query($exec, $link);
mysql_close($link);

echo '<script type="text/javascript">
    alert("add scucess");
window.location.href="index.php";

</script>'
?>